Regular Expressions

#include regexp.h>

regexp &sstarf#star;regcomp(char &sstarf#star;exp); Compile a regular expression into an internal code.

int regexec(regexp &sstarf#star;prog, char &sstarf#star;string, int bolflag); Match the previously compiled expression prog against the string.

void regsub(regexp &sstarf#star;prog, char &sstarf#star;source, char &sstarf#star;dest); Substitute the previously matched expression prog with source. The result is copied to dest.

void regdump(regexp &sstarf#star;r); Dump the regular expression r onto stdout> in vaguely comprehensible form.